.pw-container {
            max-width: 800px;
            width: 100%;
            background-color: #ffffff;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            text-align: center;
            border: 1px solid #e2e8f0;
            margin-bottom: 30px; /* Space between main container and chart section */
        }


 #protectedContent {
      display: none;
      margin-top: 20px;
      color: green;
    }

/* Default vertical layout */
.typing-area.vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Horizontal layout */
.typing-area.horizontal {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
}

/* Make both passage & input flexible in horizontal */
.typing-area.horizontal .text-display,
.typing-area.horizontal .text-input {
    flex: 1;
}


a
{
text-decoration:none;
}
.inp
{
border: 2px solid green;
 
}

 .features {
      background-color: #d0e7ff;
      padding: 40px 20px;
      text-align: center;
width:100%;
ul {
  list-style-type: none;  
}

ol {
  list-style-type: none; 
}
    }

 
.clickableDiv
 {
  background-color: #e6f0ff;
  border: 2px solid #00509e;
  border-radius: 8px;
  padding: 15px 25px;
  text-align: left;
  text-decoration: none;
  color: #003366;
  font-weight: bold;
  transition: 0.2s;
  margin:.5%;
  width: 25%; 
  display: inline-block; 
  box-sizing: border-box;
}
.topic-card {
  background-color: #e6f0ff;
  border: 2px solid #00509e;
  border-radius: 8px;
  padding: 15px 25px;
  text-align: left;
  text-decoration: none;
  color: #003366;
  font-weight: bold;
  transition: 0.2s;
  margin:.5%;
  width: 25%; 
  display: inline-block; 
  box-sizing: border-box;
}
.topic-card:hover {
  background-color: #cce0ff;
  border-color: #003366;
  transform: translateY(-3px);
}










        body {
            font-family: 'Inter', sans-serif;
            background-color: #e0f2fe; /*#f0f2f5;*/
            display: flex;
            flex-direction: column; /* Stack header, content, footer vertically */
            justify-content: flex-start; /* Align content to the top */
            align-items: center; /* Center horizontally */
            min-height: 100vh;
            margin: 0;
            padding: 0;
            box-sizing: border;
        }

        /* Header, Banner, Footer Styling */
        .header, .banner, .footer {
            width: 100%;
            background-color: #2563eb; /* Deep blue */
            color: white;
            padding: 1rem 0;
            text-align: center;
        }

        .header {
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .header .logo {
            font-size: 2rem;
            font-weight: bold;
        }

        .banner {
            background-color: #3b82f6; /* Slightly lighter blue for banner */
            padding: 0.75rem 0;
            font-size: 1.1rem;
            font-weight: 500;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }

        .footer {
            background-color: #1e40af; /* Even deeper blue for footer */
            font-size: 0.9rem;
            padding: 1rem 0;
            margin-top: auto; /* Pushes footer to the bottom */
            box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
        }

        .main-content-wrapper {
            flex-grow: 1; /* Allows content to take available space */
            display: flex;
            flex-direction: column; /* Stack main container and history vertically */
            align-items: center; /* Center items within this wrapper */
            width: 90%;
            padding: 20px; /* Add padding here for the main content area */
            box-sizing: border-box;
        }

 .sub-content-wrapper {
            flex-grow: 1; /* Allows content to take available space */
            display: flex;
            flex-direction: column; /* Stack main container and history vertically */
            align-items: center; /* Center items within this wrapper */
            width: 100%;
            padding: 20px; /* Add padding here for the main content area */
            box-sizing: border-box;
        }
        .container {
            max-width: 800px;
            width: 100%;
            background-color: #ffffff;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            text-align: center;
            border: 1px solid #e2e8f0;
            margin-bottom: 30px; /* Space between main container and history */
        }

        .text-display {
            background-color: #f7fafc;
            border: 1px solid #cbd5e0;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 25px;
            min-height: 120px;
            font-size: 1.5rem;
            line-height: 1.8;
            text-align: left;
            overflow-wrap: break-word;
            word-wrap: break-word;
            white-space: pre-wrap;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
            /* Styles for scrollbar */
            max-height: calc(1.5rem * 1.8 * 5 + 40px); /* Approx 8 lines (font-size * line-height * lines + padding) */
            overflow-y: auto; /* Enable vertical scrolling */
        }

        .text-display .correct {
            color: #10b981;
        }

        .text-display .incorrect {
            color: #ef4444;
            text-decoration: underline;
        }

        .text-display .current {
            background-color: #bfdbfe;
            border-radius: 3px;
            padding: 0 2px;
        }

        .text-input {
            width: 100%;
            padding: 15px 20px;
            font-size: 1.25rem;
            border: 2px solid #9ca3af;
            border-radius: 10px;
            margin-bottom: 25px;
            outline: none;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }

        .text-input:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
        }

        .results {
            display: flex;
            justify-content: space-around;
            align-items: center;
            margin-bottom: 25px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .result-item {
            background-color: #e0f2fe;
            padding: 15px 25px;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
            min-width: 100px;
            text-align: center;
        }

        .result-item span {
            display: block;
            font-size: 2.25rem;
            font-weight: 700;
            color: #1e40af;
            margin-bottom: 5px;
        }

        .result-item p {
            font-size: 1rem;
            color: #4b5563;
            font-weight: 500;
        }

        .button {
            background-color: #3b82f6;
            color: white;
            padding: 15px 30px;
            border: none;
            border-radius: 10px;
            font-size: 1.25rem;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
            box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
        }

        .button:hover {
            background-color: #2563eb;
            transform: translateY(-2px);
            box-shadow: 0 7px 20px rgba(59, 130, 246, 0.4);
        }

        .button:active {
            transform: translateY(0);
            box-shadow: 0 3px 10px rgba(59, 130, 246, 0.2);
        }

        .message-box {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: #ffffff;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            max-width: 90%;
            min-width: 300px;
            border: 1px solid #e2e8f0;
        }

        .message-box p {
            font-size: 1.25rem;
            margin-bottom: 20px;
            color: #333;
        }

        .message-box button {
            background-color: #3b82f6;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .message-box button:hover {
            background-color: #2563eb;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
            display: none;
        }

        /* New wrapper for the three interactive elements */
        .options-wrapper {
            display: flex;
            flex-wrap: wrap; /* Allow items to wrap to the next line */
            justify-content: center; /* Center items horizontally */
            align-items: center; /* Center items vertically */
            gap: 20px; /* Space between flex items (the three containers) */
            margin-bottom: 25px; /* Space between this row of options and the start button */
            width: 100%; /* Ensure it takes full width of its parent (.container) */
        }

        .time-selection-container, .test-material-selection-container, .upload-container {
            /* Removed margin-bottom here as gap on parent handles vertical spacing */
            margin-bottom: 0;
            display: flex; /* Already present for internal label/select alignment */
            align-items: center; /* Already present */
            justify-content: center; /* Already present */
            gap: 10px; /* Already present */
        }

        /* Styling for file input */
        .upload-container input[type="file"] {
            padding: 8px 15px; /* Slightly less padding for file input */
        }

        /* History Section Styling */
        .history-container {
            max-width: 800px;
            width: 100%;
            background-color: #ffffff;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            text-align: center;
            border: 1px solid #e2e8f0;
            margin-bottom: 30px; /* Space between main container and chart section */
        }

        .history-container h2 {
            font-size: 2rem;
            font-weight: bold;
            color: #333;
            margin-bottom: 20px;
        }

        /* Wrapper for horizontal scrolling */
        .history-table-wrapper {
            overflow-x: auto; /* Enable horizontal scrolling */
            width: 100%; /* Ensure it takes full width */
        }

        .history-table {
            width: 100%; /* Make table take full width of its wrapper */
            min-width: 1000px; /* Increased min-width for new columns */
            border-collapse: collapse;
            margin-top: 20px;
        }

        .history-table th, .history-table td {
            padding: 12px 15px;
            border: 1px solid #e2e8f0;
            text-align: left;
            white-space: nowrap; /* Prevent text wrapping in cells */
        }

        .history-table th {
            background-color: #e0f2fe;
            color: #1e40af;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.9rem;
        }

        .history-table tr:nth-child(even) {
            background-color: #f8faff;
        }

        .history-table tr:hover {
            background-color: #eff6ff;
        }

        .history-table tbody tr:last-child td {
            border-bottom: none;
        }

        .loading-message {
            font-size: 1.1rem;
            color: #6b7280;
            margin-top: 20px;
        }

        /* Chart Section Styling */
        .chart-section {
            max-width: 800px;
            width: 100%;
            background-color: #ffffff;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            text-align: center;
            border: 1px solid #e2e8f0;
            margin-top: 30px; /* Space above the chart section */
        }

        .chart-section h2 {
            font-size: 2rem;
            font-weight: bold;
            color: #333;
            margin-bottom: 20px;
        }

        .chart-container {
            position: relative;
            height: 400px; /* Fixed height for the chart */
            width: 100%;
            margin: 0 auto;
        }
        @media (max-width: 640px) {
            
.main-content-wrapper {
             
            width: 100%;
             
        }

                .chart-container {
                height: 300px; /* Smaller height on mobile */
            }

.topic-card {
  background-color: #e6f0ff;
  border: 2px solid #00509e;
  border-radius: 8px;
  
  text-align: left;
  text-decoration: none;
  color: #003366;
  font-weight: bold;
  transition: 0.2s;
  margin:.5%;
  width: 75%; 
  display: inline-block; 
  box-sizing: border-box;
 
}

.topic-card:hover {
  background-color: #cce0ff;
  border-color: #003366;
  transform: translateY(-3px);
}

.header
{
display:none;
}



        }
     